package com.example.demo.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by weishaofei on 2018/12/20.
 */
@Component
public class RandomValues {

    @Value("${random.int(10)}")
    private int rdmInt;


    @Value("${book.name}")
    private String name;

    public void show() {
        System.out.println(rdmInt);

        System.out.println(name);
    }
}
